package guowenlong.golf.ui.personal.changepsaaword;


import guowenlong.golf.entity.ChangePasswordEntity;
import me.wenlong.mixutils.mvp.BaseModel;
import me.wenlong.mixutils.mvp.BasePresenter;
import me.wenlong.mixutils.mvp.BaseView;
import rx.Observable;

/**
 * des   : 描述 author: Gavin email : guowenlong20000@gmail.com time  : 2016年08月30日 下午 5:19.
 */
public interface ChangePasswordContract {

  interface Model extends BaseModel {

    Observable<ChangePasswordEntity> changePassword (String token, String password,String rePassword);
  }

  interface View extends BaseView {

    void changePasswordSuccess(ChangePasswordEntity changePasswordEntity);

    void changePasswordError(ChangePasswordEntity changePasswordEntity);
  }

  abstract class Presenter extends BasePresenter<Model, View> {

    public abstract void changePassword(String token, String password,String rePassword);
  }
}